<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul>

    </ul>
    <script>
        var stars = ['迪丽热巴','古力娜扎','热依扎','马尔扎哈'];
        var oUl = document.querySelector('ul');
        // oUl.innerHTML = '<li>迪丽热巴</li><li>古力娜扎</li><li>热依扎</li>';
        var str = '';
        for(var i = 0; i < stars.length; i++){
            str += '<li>' + stars[i] + '</li>';
        }
        // console.log(str);
        oUl.innerHTML = str;
    </script>
</body>
</html>